<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <div class="section">
                <h1>Acesso</h1>
                <h:form id="userForm" enctype="multipart/form-data">
                    <p:growl id="messages" showDetail="true" autoUpdate="true"  /> 
                    <p:panel id="acessoPanel" style="background: none; border: none;" styleClass="container_24 clearfix ">
                            <p:pickList id="pickList" value="#{managerSearchUser.dualGrupo}" var="g" 
                                    converter="groupconverter" 
                                    itemLabel="#{g.name}" itemValue="#{g}" 
                                    showSourceFilter="true" showTargetFilter="true" 
                                    filterMatchMode="contains" style="width: 95%; ">  

                            <f:facet name="sourceCaption">Disponíveis</f:facet>  
                            <f:facet name="targetCaption">Selecionados</f:facet>  

                        </p:pickList>
                    </p:panel>

                    <br/>
                    <div class="buttonAction">
                        <p:commandButton value="Atualizar" icon="ui-icon-disk"
                                        update="messages"
                                        actionListener="#{managerSearchUser.updateAcess()}"
                                        styleClass="ui-priority-primary" />
                        <p:button href="searchuser.xhtml" value="Voltar"  icon="ui-icon-arrowreturnthick-1-w" />
                    </div >
                </h:form>
            </div>
        </ui:define>
    </ui:composition>

</html>
